<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%  
String path = request.getContextPath();  
String basepath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";  
%>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>账号安全</title>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=yes" name="format-detection" />
    <link href="<%=basepath%>css/index.css" rel="stylesheet" type="text/css">
    <link href="<%=basepath%>css/join.css" rel="stylesheet" type="text/css">
    <script src="<%=basepath%>js/jquery-1.8.3.min.js"></script>
    <script src="<%=basepath%>js/layer/layer.js"></script>
</head>
<body>
<div class="viewport">
    <div class="header">
       <div class="header-1">
           <a href="javascrpt:void(0)" id="join" class="header-2">
              <span id="account" class="account">${empty user.realName ? '' : user.realName}</span>&nbsp;&nbsp;<span id="deptName" class="deptName">${user.departmentName}</span>
           </a>
           <a href="/wape-web/api/core/centerService?serviceCode=WJ9999&targetURL=mine&prefix=3g_mine&entrance=yes" class="back" id="back">返回</a>
           <span class="span-num">WMP11300</span>
       </div>
    </div>
    <div class="content m-top">
        <div class="blank"></div>
        <div class="content-1">
            <div class="content-1-1"><a href="javascript:void(0)"><span>我的手机号</span><span class="span-1 right" id="cellPhone">未绑定</span></a> </div>
            <div class="content-1-1"><a href="javascript:void(0)"><span>我的微信号</span><span class="span-1 right" id="we">未绑定</span></a> </div>
            <div class="content-1-1"><a href="javascript:void(0)" id="qq-1"><span>我的QQ号</span><img src="<%=basepath%>images/b43.png"><span class="span-1" id="qq">未绑定</span></a> </div>
            <div class="content-1-1 border"><a href="/wape-web/api/core/centerService?serviceCode=WJ9999&targetURL=modify&prefix=3g_mine"><span>修改密码</span><img src="<%=basepath%>images/b43.png"><span class="span-1">******</span></a> </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript">
    /*错误提示*/
    $(function(){
        var error = "${requestScope.returnMsg}";
        if(error != "" && error != "成功!"){
            layer.msg(error,{shadeClose:true,shade:0.1,time:2000});
        }
    });
    /*QQ号*/
    $(function(){
    	$("#qq-1").click(function(){
    		layer.prompt({
    			title:'绑定QQ号',
    			type:0
    		},function(qq){
    			if(qq !=""){
    		        
    				$.ajax({
                        type:"post",
                        url:"/wape-web/api/core/centerService",
                        data:{
                            serviceCode:"",
                            realName:qq
                        },
                        success:function(data){
                            var qq1 = eval("("+data+")");
                            if(qq1.returnCode == "200"){
                            	$("#qq").text(qq);
                            }
                            else{
                                layer.msg("修改失败!",{shadeClose:true,shade:0.1,time:2000});
                            }
                        }
                    });
    			}
    			layer.closeAll();
    		});
    	});
    });
</script>
</html>

